//
//  WBTestControl.swift
//  Weibo_Swift_GX
//
//  Created by Tony on 2018/2/26.
//  Copyright © 2018年 Tony. All rights reserved.
//

import UIKit

class WBTestControl: UIControl {

    
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        print("touchesBegan...")
        
        super.touchesBegan(touches, with: event)
        
        self.backgroundColor = UIColor.gray
    }
    
    override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
        super.touchesEnded(touches, with: event)
        
        self.backgroundColor = UIColor.red
    }

}
